<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Greyscale Avisynth Filter</title>
<link rel="stylesheet" type="text/css" href="../../avisynth.css">
</head>
<body>
<h2><a name="Greyscale"></a>Greyscale</h2>
<P><code>Greyscale </code>(<var>clip [, string "matrix"]</var>)
<p>Converts the input clip to greyscale (without changing the color format).
<p>In YCbCr based formats, the chroma channels are set to 128. In RGB based
formats, the conversion produces the luma using the coefficients given in the <var>matrix</var>
parameter (rec601 by default, which reflects the behaviour in old AviSynth
versions). This option is added in <em>v2.56</em>. When setting <var>matrix</var>=&quot;rec709&quot;, the clip is converted to greyscale using
Rec.709 coefficients. When setting <var>matrix</var>=&quot;Average&quot; the luma is calculated as (R+G+B)/3. See <a href="convert.htm">ColorConversions</a> for an
explanation of these coefficients.</p>
<p><kbd>$Date: 2008/02/10 13:57:17 $</kbd></p>
<FORM>
<INPUT TYPE="Button" VALUE="Back"
onClick="history.go(-1)">
</form>
</body>
</html>
